/**
 * Created by lvlq on 16/3/3.
 */
(function ($) {
    var L = function () {
        var A = window.document.documentElement.getBoundingClientRect();
        var raio = 1032 / 640;
        var width = A.width;
        var logicHeight = width * raio;
        if (logicHeight > A.height) {
            var kraio = A.height / logicHeight;
            var K = window.document.getElementById("container");
            K.style.fontSize = kraio + "rem";
            K.style.width = 10 * kraio + "rem";
        }
    };
    var K;
    window.addEventListener("resize", function () {
        clearTimeout(K), K = setTimeout(L, 300);
    });
    L();
})(Zepto);